package com.fosss.band.mapper;

import com.fosss.band.entity.FanConcert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: fosss
 * Date: 2023/12/27
 * Time: 20:32
 * Description:
 */
@Mapper
public interface FanConcertMapper {
    /**
     * 查询该演唱会参加的人员id
     */
    List<Integer> selectFanIdsByConcertId(@Param("id") Integer id);

    FanConcert select(@Param("fanId") Integer fanId, @Param("concertId") Integer concertId);

    void insert(FanConcert fc);

    void delete(@Param("fanId") Integer fanId, @Param("concertId") Integer concertId);

    /**
     * 查询该用户参加的演唱会id
     */
    List<Integer> selectConcertIdsByFanId(@Param("userId") Integer userId);
}
